package com.hehao.common.entiy;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Damon
 * @date 2023/6/26
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Person{
    private Integer salary;
    private String name;
    private String sex;
    private String area;
    private Integer age;


    public static List<Person> getList() {
        List<Person> list = new ArrayList<>();
        list.add(new Person(5000, "Alice", "男", "Shanghai",18));
        list.add(new Person(6000, "Bob", "男", "Beijing",20));
        list.add(new Person(7000, "Cathy", "女", "Guangzhou",23));
        list.add(new Person(8000, "David", "男", "Shenzhen",12));
        list.add(new Person(9000, "Emily", "女", "Chengdu",33));
        list.add(new Person(10000, "Frank", "男", "Hangzhou",44));
        list.add(new Person(11000, "Grace", "女", "Nanjing",21));
        list.add(new Person(12000, "Henry", "女", "Wuhan",51));
        list.add(new Person(13000, "Iris", "女", "Xiamen",32));
        list.add(new Person(14000, "Jack", "男", "Chongqing",26));
        return list;
    }
}
